package com.devin.service;

import com.devin.pojo.Permission;

import java.util.List;

public interface PermissionService {
    List<Permission> getPermissions();

    List<Permission> getPermissionsByPage(Integer page,Integer size);

    void addPermission(Permission permission);

    void delPermission(Integer permissionId);

    List<Permission> getPermissions2Json(Integer roleId);

    void delPermissionsChecked(Integer[] ids);

    List<Permission> getPermissionsAndRoles();

}
